package com.house.framework.utils;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName PageList
 * @Version 1.0
 */
@Data
public class PageList<T> {
    // 总条数
    private Integer totals = 0;

    // 当前页数据
    private List<T> rows = new ArrayList<>();

    public PageList() {
    }

    public PageList(Integer totals, List<T> rows) {
        this.totals = totals;
        this.rows = rows;
    }
}
